package com.studio701.carguard.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xjc
 * @since 2022-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Report对象", description="")
public class Report implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "报表id")
    @TableId(value = "rp_id", type = IdType.AUTO)
    private Integer rpId;

    @ApiModelProperty(value = "报表总评分")
    @TableField("rp_score")
    private BigDecimal rpScore;

    @ApiModelProperty(value = "车辆起始位置")
    @TableField("rp_startlocation")
    private String rpStartlocation;

    @ApiModelProperty(value = "车辆结束位置")
    @TableField("rp_endlocation")
    private String rpEndlocation;

    @ApiModelProperty(value = "车辆起始时间")
    @TableField("rp_starttime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty(value = "rpStarttime")
    private LocalDateTime rpStarttime;

    @ApiModelProperty(value = "车辆结束时间")
    @TableField("rp_endtime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty(value = "rpEndtime")
    private LocalDateTime rpEndtime;

    @ApiModelProperty(value = "行程分析")
    @TableField("rp_analysis")
    private String rpAnalysis;

    @ApiModelProperty(value = "车辆安全行驶里程")
    @TableField("rp_mileage")
    private BigDecimal rpMileage;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "车辆id")
    @TableField("c_id")
    private Integer cId;

    @ApiModelProperty(value = "人体id")
    @TableField("h_id")
    private Integer hId;


}
